import { Injectable } from '@angular/core';

import 'rxjs/add/operator/map';

/*
  Generated class for the Settings provider.

  See https://angular.io/docs/ts/latest/guide/dependency-injection.html
  for more info on providers and Angular 2 DI.
*/
@Injectable()
export class Settings {  
  Get(key:string){
    return JSON.parse(localStorage.getItem(key));
  }
  Set(key:string,value:any){
    localStorage.setItem(key,JSON.stringify(value));
  }
  Delete(key:string){
    localStorage.removeItem(key);
  }
}
